﻿//
// GNS_PlayerDate.h
// MobileManageSys
//FuncTion  直属玩家详情
// Created by mr.l on 16/1/16.
//
//

#ifndef __MobileManageSys__GNS_PlayerDate__
#define __MobileManageSys__GNS_PlayerDate__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_CursorTextField.h"
#include "GNS_Common.h"
#include "GNS_Handler.h"

USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;
US_NS_CUSTOM_UI;

class GNS_PlayerDate : public Layer
{
public:
    GNS_PlayerDate();
    ~GNS_PlayerDate();
    static GNS_PlayerDate* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_PlayerDate);
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void SetNodeName(std::string CsbName);
    bool PlayerState= false;
    void ShowPlayerDate(CMD_SC_GetLowlinePlayerInfoResult Getlowlnfo);
    void SetButtonState(bool state);
private:
	//add by Jack
	bool checkInput();
    void OnUIAction(std::string Text,bool isUTF);
private:
	Button * pForbid=nullptr;
    Node * pGNS_PlayerDate;
   //GNS_CursorTextField * RemTextF;
    //GNS_CursorTextField * NickNameTextF;
   // GNS_CursorTextField * MobilephoneNumTextF;
    TextField * niChenTextField;
    TextField * nameTextField;
    TextField * phoneTextField;

	CustomEditBox * _niChenTextField;
	CustomEditBox * _nameTextField;
	CustomEditBox * _phoneTextField;
    
    int PlayerID=0;
    
    ImageView * NickNamebg;
    ImageView * ReaName;
    ImageView * IphoneNun;
    bool IsInput;
    Button * pPrivate;
    
     void textFieldEvent(Ref * pSender , ui::TextField::EventType type,int flag);
    /**
     *  UI界面
     */
    Text * TitleText=nullptr;
    Text * IdText=nullptr;
    Text * GlodText=nullptr;
    Text * TopUpText=nullptr;
    Text * TickText=nullptr;
    Text * StateText=nullptr;
    Text * InfoText=nullptr;
    Text * IntoText=nullptr;
};

#endif /* defined(__MobileManageSys__GNS_PlayerDate__) */